package com.zqxq.lottery.cms;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.client.RestTemplate;

/**
 * @Description ：
 * @Author ： 解风
 * @Date ： 2018/03/16 09:22
 */
@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients
@MapperScan("com.zqxq.*.mapper*")
@ComponentScan(basePackages={"com.zqxq.lottery.cms","com.zqxq.lottery.*.config","com.zqxq.lottery.*.interceptor","com.zqxq.auth","com.zqxq.*.config"})
public class CmsApplication {
    @Bean
    @LoadBalanced
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
    public static void main(String[] args) {
        SpringApplication.run(CmsApplication.class, args);
    }
}
